﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Card : MonoBehaviour
{
    //关联的物体对象
    public CardObject _bindObject;

    private MyButton _button;

    private void Awake()
    {
        _button = GetComponent<MyButton>();
        _button.onDownAction += (data) => { MouseManager.Instance.OnClickedCards(this); };
        _bindObject._bindCard = this;
    }
}
